package com.example.demo.util.ljming;

import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class FourGroups {
    public static void main(String[] args) {
        List<String> group1 = Arrays.asList("企业的", "公司的");
        List<String> group2 = Arrays.asList("负面信息", "失信信息", "行政处罚", "环保处罚", "税务处罚", "消防处罚", "安全生产处罚", "工程质量处罚", "交通运输处罚", "工商处罚", "排气污染处罚", "排水污染处罚", "食品药品处罚", "税务违法", "法律诉讼", "开庭公告", "立案信息", "劳动仲裁");
        List<String> group3 = Arrays.asList("影响企业的", "影响公司的", "不利于企业的", "不利于公司的");
        List<String> group4 = Arrays.asList("信用贷款", "融资贷款", "银行贷款", "上市审批", "上市考核", "企业评级", "政府补贴", "市场准入", "招标投标", "行政审批", "资质认定", "政府扶持", "公共采购", "政府采购", "荣誉评定", "资金补贴", "客户合作", "商务合作", "招商引资", "融资信贷", "财税补贴", "财税优惠", "上市考评", "平台入驻", "市场口碑");

        List<String> combinedList = new ArrayList<>();

        for (String str1 : group1) {
            for (String str2 : group2) {
                for (String str3 : group3) {
                    for (String str4 : group4) {
                        String combinedString = str1 + str2 + str3 + str4;
                        combinedList.add(combinedString);
                    }
                }
            }
        }

        // 将组合结果写入文件
        try (FileWriter writer = new FileWriter("D:/abc.txt")) {
            for (String combinedString : combinedList) {
                writer.write(combinedString + "\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}